package com.neuedu.boot.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 项目：      springboot
 * 类名:       AppController
 * 创建时间：  2024/3/26 13：38
 * 描述 :
 * 作者 :     张金山
 * QQ :     314649444
 * Site:      https://jshand.gitee.io
 */
@RestController
@PropertySource(value = "classpath:jdbc.properties")
public class AppController {


    @Value("${wx.appId}")
    private String wxAppId;

    @Value("${wx.appSecuret}")
    private String wxSecuret;

    @Value("${jdbc.username}")
    private String jdbcUserName;

    @RequestMapping("requestWxServer")
    String requestWxServer(){

        System.out.println(wxAppId);
        // http://
        System.out.println("wxAppId = " + wxAppId);
        System.out.println("wxSecuret = " + wxSecuret);


        return "wxAppId:"+wxAppId+"     wxSecuret"+wxSecuret;
    }



    @RequestMapping("otherProperties")
    String otherProperties(){

        System.out.println("jdbcUserName = " + jdbcUserName);

        return "jdbcUserName:"+jdbcUserName;
    }

}
